<template>
  <div>
    <a-tabs defaultActiveKey="1" @change="callback">
      <a-tab-pane tab="卡片设置" key="1">
        <card-setting />
      </a-tab-pane>
      <a-tab-pane tab="页面组件" key="2" forceRender>
        <page-component />
      </a-tab-pane>
    </a-tabs>
  </div>
</template>
<script lang="ts">
const CardSetting = () => import("./CardSetting.vue").then(m => m.default || m);
const pageComponent = () =>
  import("./pageComponent.vue").then(m => m.default || m);
import { Component, Vue, Prop, Emit } from "vue-property-decorator";
@Component({
  name: "open-weight",
  layout: "menu",
  components: {
    CardSetting,
    pageComponent,
  }
})
export default class OpenWeight extends Vue {
  callback(activeKey: string) {
    console.log(activeKey,'当前选择的项string');
  }
}
</script>